package com.cdpm.system.service.impl;

import com.cdpm.system.domain.PrizeConfig;
import com.cdpm.system.mapper.PrizeMapper;
import com.cdpm.system.service.IPrizeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @author: longjy
 * @create: 2024-08-27 16:26
 **/
@Service
public class PrizeServiceImpl implements IPrizeService {


    @Resource
    PrizeMapper PrizeMapper;

    @Override
    public List<PrizeConfig> findList(PrizeConfig PrizeConfig) {
        List<PrizeConfig> list = PrizeMapper.findList(PrizeConfig);
        return list;
    }

    @Override
    public int insert(PrizeConfig PrizeConfig) {
        return PrizeMapper.insert(PrizeConfig);
    }

    @Override
    public int update(PrizeConfig PrizeConfig) {
        return PrizeMapper.update(PrizeConfig);
    }

    @Override
    public PrizeConfig findById(Long activityId) {
        PrizeConfig PrizeConfig = PrizeMapper.findById(activityId);
        return PrizeConfig;
    }
}
